package xin.clips.system.domain.gy;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import xin.clips.common.annotation.Excel;
import xin.clips.common.core.domain.BaseEntity;

/**
 * 用户文档对象 gy_user_doc
 *
 * @author clips
 * @date 2023-02-28
 */
public class GyUserDoc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件的路径 */
    @Excel(name = "文件的路径")
    private String filePath;

    /** 文件的上级id，对应file_id */
    @Excel(name = "文件的上级id，对应file_id")
    private String parentId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 文件的扩展名 */
    @Excel(name = "文件的扩展名")
    private String fileExt;

    /** 文件类型（0：文件夹，1：文件） */
    @Excel(name = "文件类型", readConverterExp = "0=：文件夹，1：文件")
    private Integer fileType;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderByNo;

    private String ancestors;

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setFileExt(String fileExt)
    {
        this.fileExt = fileExt;
    }

    public String getFileExt()
    {
        return fileExt;
    }
    public void setFileType(Integer fileType)
    {
        this.fileType = fileType;
    }

    public Integer getFileType()
    {
        return fileType;
    }
    public void setOrderByNo(Long orderByNo)
    {
        this.orderByNo = orderByNo;
    }

    public Long getOrderByNo()
    {
        return orderByNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("parentId", getParentId())
            .append("userId", getUserId())
            .append("fileExt", getFileExt())
            .append("fileType", getFileType())
            .append("orderByNo", getOrderByNo())
            .toString();
    }
}
